import request from '@/utils/request'

// 查询服务类型信息列表
export function listServiceType(query) {
  return request({
    url: '/accompany/serviceType/list',
    method: 'get',
    params: query
  })
}

// 查询服务类型信息详细
export function getServiceType(serviceTypeId) {
  return request({
    url: '/accompany/serviceType/' + serviceTypeId,
    method: 'get'
  })
}

// 新增服务类型信息
export function addServiceType(data) {
  return request({
    url: '/accompany/serviceType',
    method: 'post',
    data: data
  })
}

// 修改服务类型信息
export function updateServiceType(data) {
  return request({
    url: '/accompany/serviceType',
    method: 'put',
    data: data
  })
}

// 删除服务类型信息
export function delServiceType(serviceTypeId) {
  return request({
    url: '/accompany/serviceType/' + serviceTypeId,
    method: 'delete'
  })
}
